package rateexchange.client.place;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class RatesTablePlace extends Place{
	
	private String token;
    
    public RatesTablePlace(String token) {
        this.token = token;
    }
    
    public String getToken() {
        return token;
    }
    
    public static class Tokenizer implements PlaceTokenizer<RatesTablePlace> {
        
        @Override
        public String getToken(RatesTablePlace place) {
            return place.getToken();
        }
        
        @Override
        public RatesTablePlace getPlace(String token) {
            return new RatesTablePlace(token);
        }
        
    }
}
